<?php
use yii\widgets\ActiveForm;
?>

<div class="docs-main">
    <table id="tablesaw" class="tablesaw table yx-table1 yx-table3 table-striped with-check"  data-tablesaw-mode="swipe" data-tablesaw-minimap >
        <thead class="yx-bgd2f6ec">
        <tr>
            <th>课程名称</th>
            <th>总课次</th>
            <th>已上课次</th>
            <th>可退奖学金</th>
            <th>可退余额</th>
        </tr>
        </thead>
        <tr>
            <td><?=$items['name']?></td>
            <td><?=$items['class_count']?></td>
            <td><?=$items['ok_class_count']?></td>
            <td><?=$items['scholarship_money']?></td>
            <td><?=$items['money']?></td>
        </tr>
        <?php if($items_art != null) { ?>
        <tr>
            <td><?=$items_art['name']?></td>
            <td><?=$items_art['class_count']?></td>
            <td><?=$items_art['ok_class_count']?></td>
            <td><?=$items_art['scholarship_money']?></td>
            <td><?=$items_art['money']?></td>
        </tr>
        <?php } ?>

    </table>
    </div>
    <?php  ActiveForm::begin(['enableAjaxValidation' => false,'enableClientValidation' => true,'options'=>['class'=>'form-validate']]); ?>
        <?=\yii\helpers\Html::hiddenInput('scholarship_money',$items['scholarship_money'])?>
        <?=\yii\helpers\Html::hiddenInput('money',$items['money'])?>
        <?php if($items_art != null){ ?>
        <?=\yii\helpers\Html::hiddenInput('scholarship_money_art',$items_art['scholarship_money'])?>
        <?=\yii\helpers\Html::hiddenInput('money_art',$items_art['money'])?>
        <?php } ?>
        <?=\yii\helpers\Html::submitButton('submit',['id'=>'dosubmit','style'=>'display:none']);?>
    <?php  ActiveForm::end(); ?>

